package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.bo.user.UserMessageBo;
import com.cskaoyan.mall.model.bo.user.UserPwdChangeBo;
import com.cskaoyan.mall.model.po.User;
import com.cskaoyan.mall.model.vo.user.UserMessageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: UserMapper
 * @Description: TODO
 * @Auther 庄左
 * @Date 2022/6/29 21:32
 * @Version
 **/
public interface UserMapper {
    //查看
    // List<UserMessageVo> selectUserAll(User user);
    List<UserMessageVo> selectUser(User user);

    void deleteUser(Integer id);

    //用户注册
    void insertUser(@Param("user") User user);

    //用户修改资料的界面，还未保存修改，只是将用户的资料回显了
    UserMessageVo selectUserByNickName(String nickName);

    //用户登录
    UserMessageVo selectUserLoginInMall(User user);

    void updateUserData(User user);


    void updatePwd(User user);
}
